/* ==========================================================================
   iMakler — "Lemon" design layer for the Sunny template
   Loaded after style.css. Colors come from light.css / dark.css, so the
   built-in light/dark switcher, RTL (style-rtl.css) and all template
   settings keep working exactly as before.
   ========================================================================== */

/* ---------- Base ---------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.006em;
}
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.03em;
}
h1 {
    font-size: 2.5rem;
    line-height: 1.1;
}
::selection {
    background: var(--pro-yellow);
    color: var(--pro-on-yellow);
}
a {
    transition: color .15s ease, opacity .15s ease;
}
a:hover {
    color: var(--link-hover);
}
:focus-visible {
    outline: 2px solid var(--body-font-color);
    outline-offset: 3px;
}
.main-wrapper {
    background: var(--body-background-color);
}

/* ---------- Top strip ---------- */
div.top-header,
header.page-header div.top-header {
    background: var(--pro-ink);
    background-color: var(--pro-ink);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
}
div.top-header .circle > .default,
div.top-header .circle .theme {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}
div.top-header .circle:hover > .default,
div.top-header .circle:hover .theme {
    color: #FFFFFF;
}
div.top-header .circle:not(#theme-switcher) > .default:after {
    filter: brightness(0) invert(1) opacity(0.7);
}
/* theme switcher as a small toggle */
#theme-switcher .default {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
#theme-switcher .default:before {
    content: "";
    width: 30px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}
#theme-switcher .default:after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pro-yellow);
    margin-inline-start: 2px;
    transition: transform .25s ease;
}
#theme-switcher[data-theme="dark"] .default:after {
    transform: translateX(14px);
}
[dir="rtl"] #theme-switcher[data-theme="dark"] .default:after {
    transform: translateX(-14px);
}
#theme-switcher .default {
    position: relative;
}
div.top-header .circle_opened > .content {
    color: var(--body-font-color);
}

/* ---------- Header ---------- */
header.page-header {
    background: var(--body-background-color);
}
header.page-header div.top-navigation {
    background: transparent;
}
div#logo img {
    height: 38px;
    width: auto;
    max-width: 190px;
}

/* Search pill */
.smart-search__form {
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
    border-radius: 999px;
    padding: 5px;
    box-shadow: var(--pro-shadow-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.smart-search__form:hover {
    border-color: var(--pro-border-strong);
}
.smart-search_focus .smart-search__form {
    border-color: var(--body-font-color);
    box-shadow: var(--pro-ring);
}
.smart-search__input,
.smart-search_focus .smart-search__input,
.smart-search__input:focus {
    height: 44px;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.9375rem;
}
.smart-search__submit,
input[type="submit"].smart-search__submit,
.smart-search_focus .smart-search__submit {
    height: 44px;
    padding: 0 26px;
    border-radius: 999px !important;
    font-weight: 600;
    box-shadow: none !important;
    flex-shrink: 0;
}
.smart-search__results-wrapper {
    margin-top: 8px;
    border-radius: 20px;
    border: 1px solid var(--pro-border);
    box-shadow: var(--menu-shadow);
    overflow: hidden;
}

/* User button */
.user-navbar .circle > .default {
    width: 50px;
    height: 50px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
    transition: background .15s ease, border-color .15s ease;
}
.user-navbar .circle > .default:hover {
    background: var(--pro-yellow);
    border-color: var(--pro-yellow);
}
.user-navbar .circle > .default:hover svg {
    fill: var(--pro-on-yellow);
}
.user-navbar .circle > .default > svg {
    width: 20px;
    height: 20px;
}
.user-navbar .circle.logged-in > .default {
    width: auto;
    padding: 0 18px !important;
    border-radius: 999px;
}
.user-navbar .circle.notify > .default:before {
    background: var(--pro-yellow);
}
header.page-header div.top-navigation .circle_opened > .content,
.circle_opened > .content {
    border: 1px solid var(--pro-border);
    border-radius: 20px;
    overflow: hidden;
}

/* Main menu — black pill bar on desktop */
@media screen and (min-width: 768px) {
    .main-menu {
        padding: 6px;
        border-radius: 999px;
        background: var(--pro-bar);
        border: 1px solid var(--pro-border);
        border-color: transparent;
        box-shadow: var(--pro-shadow-md);
    }
    .main-menu .menu .menu-content a {
        height: 42px;
        padding: 0 18px;
        border-radius: 999px;
        font-weight: 500;
        color: var(--pro-bar-text);
        transition: color .15s ease, background .15s ease;
    }
    .main-menu .menu .menu-content a:hover {
        color: #FFFFFF;
        background: var(--pro-bar-chip);
    }
    .main-menu .menu a.active,
    .main-menu .menu .menu-content a.active {
        background: #FFFFFF;
        color: #0A0A0A;
        box-shadow: none;
    }
    .main-menu .category-menu__button.btn {
        height: 42px;
        padding: 0 20px;
        border-radius: 999px;
        background: var(--pro-bar-chip);
        color: #FFFFFF;
        font-weight: 500;
        box-shadow: none;
    }
    .main-menu .category-menu__button.btn:hover {
        background: rgba(255, 255, 255, 0.18);
        box-shadow: none;
    }
    .main-menu .category-menu__button-icon span,
    .main-menu .category-menu__button-icon span:before,
    .main-menu .category-menu__button-icon span:after {
        background: #FFFFFF;
    }
    .main-menu a.button.add-property,
    .main-menu a.button.add-property:not(.default):not(.disabled) {
        height: 42px;
        padding: 0 8px 0 20px;
        border: 0;
        border-radius: 999px;
        background: var(--pro-yellow);
        color: var(--pro-on-yellow);
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 12px;
    }
    [dir="rtl"] .main-menu a.button.add-property {
        padding: 0 20px 0 8px;
    }
    .main-menu a.button.add-property:after {
        content: "+";
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--pro-ink);
        color: var(--pro-yellow);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.125rem;
        font-weight: 500;
        line-height: 1;
        transition: transform .25s ease;
    }
    .main-menu a.button.add-property:hover {
        background: var(--pro-yellow-hover);
        border: 0;
        box-shadow: 0 8px 24px -6px rgba(253, 237, 24, 0.7);
    }
    .main-menu a.button.add-property:hover:after {
        transform: rotate(90deg);
    }
    body.home-page header.page-header div.top-navigation {
        padding-bottom: 20px;
    }
}

/* Mobile "All categories" button */
@media screen and (max-width: 767px) {
    .category-menu__button.btn {
        height: 48px;
        border-radius: 999px;
        font-weight: 600;
    }
}

/* Category menu panel */
.category-menu__container {
    border-radius: 24px;
}
.category-menu__category-item {
    border-radius: 12px;
}
.category-menu__subcategory-parent-count,
.categories-box__parent-counter {
    color: var(--pro-on-yellow);
    background: var(--pro-yellow);
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 600;
}

/* ---------- Buttons ---------- */
input[type="submit"],
input[type="button"],
.file-input span,
a.button,
.btn {
    height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: background-color .15s ease, box-shadow .2s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
input[type="submit"]:hover,
input[type="button"]:hover,
.file-input span:hover,
a.button.default:hover,
.btn:hover {
    box-shadow: 0 10px 24px -10px rgba(232, 213, 0, 0.9);
}
input[type="submit"]:active,
input[type="button"]:active,
a.button:not(.disabled):active,
.file-input span:active,
.btn:active {
    box-shadow: none;
    transform: scale(0.98);
}
/* secondary (outline) */
a.button:not(.default):not(.disabled),
.contact-owner-navbar input[type="button"],
.side_block .btn {
    border: 1.5px solid var(--body-font-color);
    background-color: transparent;
    color: var(--body-font-color);
}
a.button:not(.default):hover,
.side_block .btn:hover {
    border: 1.5px solid var(--body-font-color);
    background-color: var(--body-font-color);
    color: var(--body-background-color);
    box-shadow: none;
}
a.button:active,
.side_block .btn:active {
    border: 1.5px solid var(--body-font-color);
    box-shadow: none;
}

/* ---------- Form fields ---------- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select,
span.pills,
.select2-selection--single,
.select2-selection--multiple {
    height: 48px;
    border: 1px solid var(--form-field-line-color);
    border-radius: 14px;
    background-color: var(--form-background-color);
    padding-left: 16px;
    padding-right: 16px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.5;
}
select {
    padding-right: 38px;
}
[dir="rtl"] select {
    padding-left: 38px;
    padding-right: 16px;
}
input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
    border-color: var(--form-field-line-color-hover);
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    border-color: var(--form-field-line-color-focus);
    box-shadow: var(--pro-ring);
    outline: none;
}
.select2-dropdown {
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    box-shadow: var(--menu-shadow);
    overflow: hidden;
}
::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}
input[type="checkbox"]:not(.default) + label > span,
input[type="radio"]:not(.default) + label > span {
    border: 1.5px solid var(--pro-border-strong);
    border-radius: 7px;
    transition: background-color .15s ease, border-color .15s ease;
}
input[type="radio"]:not(.default) + label > span {
    border-radius: 50%;
}
input[type="checkbox"]:not(.default) + label:hover > span,
input[type="radio"]:not(.default) + label:hover > span {
    border-color: var(--body-font-color);
}
input[type="checkbox"]:not(.default):checked + label > span,
input[type="radio"]:not(.default):checked + label > span {
    box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.15);
}
span.pills {
    padding: 4px;
    border-radius: 999px;
}
span.pills label {
    border-radius: 999px;
}

/* ---------- Home hero ---------- */
@media screen and (min-width: 768px) {
    .header-nav .carousel {
        width: calc(100% - 32px);
        margin: 0 auto;
        border-radius: 32px;
        overflow: hidden;
        isolation: isolate;
    }
}
@media screen and (min-width: 1200px) {
    .header-nav .carousel {
        max-width: 1110px;
    }
}
@media screen and (min-width: 1440px) {
    .header-nav .carousel {
        max-width: 1380px;
    }
}
.carousel .carousel-item:before,
.carousel .carousel-item:not(.carousel-item_no-text):before {
    background: var(--pro-hero-overlay);
    box-shadow: none;
    z-index: 1;
}
.carousel .carousel-item.carousel-item_no-text:before {
    background: none;
}
[dir="rtl"] .carousel .carousel-item:not(.carousel-item_no-text):before {
    transform: scaleX(-1);
}
.carousel .carousel-caption {
    z-index: 2;
}
.carousel .carousel-caption > * {
    flex-shrink: 0;
}
.carousel .carousel-slide-heading {
    font-weight: 600;
    letter-spacing: -0.035em;
    text-shadow: none;
    color: #FFFFFF;
}
.carousel .carousel-slide-description {
    font-weight: 300;
    text-shadow: none;
    color: rgba(255, 255, 255, 0.82);
}
.carousel .carousel-caption a.button,
.carousel .carousel-caption a.button.default {
    background: var(--pro-yellow);
    color: var(--pro-on-yellow);
    border: 0;
}
.carousel .carousel-caption a.button:hover {
    background: var(--pro-yellow-hover);
}
.carousel .carousel-indicators {
    z-index: 3;
}
.carousel .carousel-indicators li:after {
    border-radius: 999px;
}
.carousel .carousel-indicators li.active:after {
    background: var(--pro-yellow);
}
@media screen and (min-width: 992px) {
    .carousel .carousel-item,
    .carousel.no-search-tabs .carousel-item {
        height: 520px;
    }
    .carousel .carousel-caption {
        align-items: flex-start;
        text-align: start;
        left: 64px;
        right: 64px;
        max-width: none;
        padding-bottom: 72px;
    }
    .carousel .carousel-slide-heading {
        font-size: 4rem;
        line-height: 1.02;
        max-width: 720px;
    }
    .carousel .carousel-slide-heading:after {
        content: "";
        display: block;
        width: 72px;
        height: 6px;
        margin-top: 24px;
        border-radius: 999px;
        background: var(--pro-yellow);
    }
    .carousel .carousel-slide-description {
        font-size: 1.1875rem;
        line-height: 1.55;
        margin: 20px 0 0;
        max-width: 520px;
    }
    .carousel .carousel-caption a.button {
        margin-top: 28px !important;
        height: 52px;
        padding: 0 30px;
    }
    .carousel .carousel-indicators {
        bottom: 108px;
        justify-content: flex-start;
        margin-left: 64px;
        margin-right: 64px;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .carousel .carousel-item,
    .carousel.no-search-tabs .carousel-item {
        height: 380px !important;
    }
    .carousel .carousel-slide-heading {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}
@media screen and (max-width: 767px) {
    .carousel .carousel-item,
    .carousel.no-search-tabs .carousel-item {
        height: 300px !important;
    }
    .carousel .carousel-slide-heading {
        font-size: 1.75rem;
        line-height: 1.15;
    }
    .carousel .carousel-slide-description {
        font-size: 0.9375rem;
        line-height: 1.5;
        margin-top: 10px;
    }
    .carousel .carousel-item:not(.carousel-item_no-text):before {
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.75));
    }
}

/* Search panel */
body.home-page .header-tabs {
    position: relative;
    z-index: 5;
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
    border-radius: 28px;
    box-shadow: var(--pro-shadow-lg);
    padding: 18px 14px 24px;
    width: auto;
}
body.home-page .carousel + .header-tabs,
body.home-page .main-wrapper .carousel + .header-tabs__tabs-exists {
    margin-top: -84px !important;
}
@media screen and (min-width: 768px) {
    body.home-page .header-tabs {
        margin-left: 48px;
        margin-right: 48px;
    }
}
@media screen and (min-width: 1200px) {
    body.home-page .header-tabs {
        margin-left: auto;
        margin-right: auto;
        max-width: 1014px;
    }
}
@media screen and (min-width: 1440px) {
    body.home-page .header-tabs {
        max-width: 1284px;
    }
}
body.home-page .header-tabs .tabs {
    display: inline-flex;
    justify-content: flex-start;
    gap: 4px;
    padding: 4px;
    margin: 0 15px 8px;
    border-radius: 999px;
    background: var(--pro-surface-2);
    width: auto;
    max-width: calc(100% - 30px);
    overflow-x: auto;
}
body.home-page .header-tabs .tabs > li {
    margin: 0;
}
body.home-page .header-tabs .tabs > li > a {
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    font-weight: 500;
    color: var(--pro-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.home-page .header-tabs .tabs > li > a:hover {
    color: var(--body-font-color);
    box-shadow: none;
}
body.home-page .header-tabs .tabs > li.active > a {
    background: var(--pro-ink);
    color: #FFFFFF;
    box-shadow: var(--pro-shadow-sm);
}
body.home-page .header-tabs .tabs > li.active > a .tab-icon svg > * {
    stroke: #FFFFFF;
}
body.home-page .header-tabs .tabs li.active a .tab-icon {
    filter: none;
}
.horizontal-search input[type="text"],
.horizontal-search select,
.horizontal-search .select2-selection--single {
    background-color: var(--pro-surface-2);
    border-color: transparent;
}
.horizontal-search input[type="text"]:focus,
.horizontal-search select:focus {
    background-color: var(--form-background-color);
}
.search-form-cell > div > span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--header-search-form-title-color);
}
.search-form-cell.submit input[type="submit"] {
    font-weight: 600;
}

/* ---------- Content blocks ---------- */
section.content_block > h3 {
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
    display: flex;
    align-items: center;
    gap: 14px;
}
section.content_block > h3:before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--pro-yellow);
    box-shadow: 0 0 0 4px var(--pro-yellow-soft);
    flex-shrink: 0;
}
body.home-page.no-sidebar section.content_block > h3 {
    justify-content: flex-start;
}
section.side_block:not(.no-style) {
    background: var(--pro-surface);
    border-radius: 24px;
    box-shadow: var(--pro-shadow-sm);
}
section.side_block > h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pro-muted);
    font-weight: 600;
}
#bread_crumbs > ul a {
    color: var(--pro-muted);
}
#bread_crumbs > ul a:hover {
    color: var(--body-font-color);
}

/* ---------- Listing cards (featured blocks) ---------- */
ul.featured > li {
    transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
ul.featured > li:before {
    left: 12px;
    right: 12px;
    border-radius: 26px;
    background: var(--featured-background-color);
    box-shadow: var(--pro-shadow-sm);
    border: 0;
    transition: box-shadow .25s ease;
}
ul.featured.with-pictures > li:hover {
    transform: translateY(-4px);
}
ul.featured > li:hover:before {
    box-shadow: var(--pro-shadow-lg);
}
ul.featured.with-pictures > li .picture {
    margin: 8px 8px 0;
    border-radius: 20px;
    overflow: hidden;
}
ul.featured > li img {
    border-radius: 20px;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
ul.featured.with-pictures > li:hover .picture img {
    transform: scale(1.05);
}
ul.featured > li > ul.card-info,
ul.featured > li > ul {
    padding: 14px 20px 18px;
}
ul.card-info > li.title a {
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--body-font-color);
}
ul.card-info > li.fields {
    font-size: 0.8125rem;
    color: var(--info-field-color);
    margin-top: 6px;
}
ul.card-info > li.fields > div > span:not(:last-of-type):after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
    vertical-align: middle;
    margin-inline-start: 7px;
}
ul.card-info > li.fields > div > span:not(:last-of-type) {
    margin-right: 7px;
}
[dir="rtl"] ul.card-info > li.fields > div > span:not(:last-of-type) {
    margin-right: 0;
    margin-left: 7px;
}
ul.card-info li.useful {
    font-size: 0.75rem;
    color: var(--info-field-color);
    gap: 6px 8px;
}
ul.card-info li.useful > span {
    background: var(--pro-surface-2);
    border-radius: 999px;
    padding: 4px 10px 4px 8px;
}
ul.card-info li.useful svg {
    width: 14px;
    height: 14px;
}
ul.featured ul.card-info > li.useful {
    margin-bottom: 14px;
}
ul.card-info > li.price_tag > div,
ul.card-info > li.price_tag > div > span,
ul.card-info .price-tag,
ul.card-info .price-tag > span {
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--body-font-color);
}
ul.card-info > li.price_tag > div > span,
ul.card-info .price-tag > span {
    font-size: 1.3125rem;
}

/* favorite */
.picture .favorite,
ul.featured .picture .favorite {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.15);
    transition: transform .15s ease, background .15s ease;
}
.picture .favorite:hover {
    background: var(--pro-yellow);
    transform: scale(1.08);
}
.picture .favorite:before,
.picture .favorite:after {
    display: none;
}
.picture .favorite svg {
    fill: #0A0A0A;
}
.picture .favorite.remove {
    background: var(--pro-yellow);
}
.picture .favorite.remove svg {
    fill: #0A0A0A;
}
[dir="rtl"] .picture .favorite,
[dir="rtl"] ul.featured .picture .favorite {
    right: auto;
    left: 10px;
}

/* card action buttons (call owner, etc.) */
ul.featured .icons > span,
section#listings ul.nav-column > li {
    background: var(--pro-ink);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
}
ul.featured .icons .icon,
section#listings ul.nav-column .icon {
    width: 14px;
    height: 14px;
    fill: var(--pro-yellow) !important;
}
ul.featured .icons > span:hover,
section#listings ul.nav-column > li:hover {
    background: var(--pro-yellow);
    filter: none;
    transform: rotate(-12deg);
}
ul.featured .icons > span:hover .icon,
section#listings ul.nav-column > li:hover .icon {
    fill: var(--pro-ink) !important;
}

/* "Featured" label */
.picture .label,
div.label {
    background: var(--pro-yellow);
    color: var(--pro-on-yellow);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ---------- Browse pages: list / grid ---------- */
section#listings > article .main-column {
    background: var(--listing-background-color);
    border-radius: 26px;
    box-shadow: var(--pro-shadow-sm);
    transition: box-shadow .25s ease, transform .25s ease;
}
section#listings > article:hover .main-column {
    box-shadow: var(--pro-shadow-lg);
}
section#listings > article .picture {
    border-radius: 20px;
    overflow: hidden;
}
section#listings > article .picture img {
    border-radius: 20px;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
section#listings > article:hover .picture img {
    transform: scale(1.04);
}
section#listings ul.card-info {
    background: transparent;
}
section#listings ul.card-info > li.title a {
    font-weight: 600;
    letter-spacing: -0.02em;
}
@media screen and (min-width: 768px) {
    section#listings.list > article .main-column {
        padding: 8px;
    }
    section#listings.list > article .picture {
        border-radius: 20px;
    }
}
.grid_navbar div.active div > span,
.grid_navbar .buttons div:not(.active):hover div > span {
    border-color: var(--body-font-color);
}
.grid_navbar .buttons > div {
    border-radius: 12px;
}
.grid_navbar .buttons > div.active {
    background: var(--pro-yellow);
}
.grid_navbar .buttons > div.active div > span {
    border-color: var(--pro-on-yellow);
}

/* ---------- Fieldsets ---------- */
div.fieldset > header {
    padding: 0 0 12px;
    margin-bottom: 8px;
    background: transparent;
    border-bottom: 1px solid var(--pro-border);
    text-transform: none;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--body-font-color);
}
.side_block div.fieldset > header {
    font-size: 0.9375rem;
    border-bottom: 0;
    padding: 7px 0;
}

/* ---------- Steps (add listing) ---------- */
ul.steps {
    height: 52px;
    padding: 5px;
    gap: 4px;
    border-radius: 999px;
    background: var(--pro-surface);
    box-shadow: inset 0 0 0 1px var(--pro-border);
}
ul.steps > li {
    border-radius: 999px;
    background: transparent;
}
ul.steps > li:before,
ul.steps > li:after,
ul.steps > li:not(:last-child):not(.past):before,
ul.steps > li:not(:last-child):not(.past):after {
    display: none !important;
}
ul.steps > li a {
    padding: 0 12px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--pro-muted);
}
ul.steps > li.past {
    background: var(--pro-surface-2);
}
ul.steps > li.past a {
    color: var(--body-font-color);
}
ul.steps > li.past a:before {
    content: "✓";
    margin-inline-end: 6px;
    font-weight: 700;
}
ul.steps > li.current {
    background: var(--pro-yellow);
}
ul.steps > li.current a {
    color: var(--pro-on-yellow);
    font-weight: 600;
}

/* ---------- Pagination ---------- */
ul.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}
ul.pagination > li > a,
ul.pagination > li > span,
ul.pagination > li.navigator a {
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background: var(--pro-surface);
    color: var(--body-font-color);
    font-size: 0.9375rem;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--pro-shadow-sm);
}
ul.pagination > li.navigator a {
    font-size: 1.25rem;
    font-weight: 400;
}
ul.pagination > li > a:hover,
ul.pagination > li.navigator a:hover {
    border: 0;
    background: var(--body-font-color);
    color: var(--body-background-color);
}
ul.pagination > li.active > span,
ul.pagination > li.active > a {
    background: var(--pro-yellow);
    color: var(--pro-on-yellow);
}
ul.pagination > li.navigator a:active {
    border: 0;
    box-shadow: none;
}

/* ---------- Tabs (inner pages) ---------- */
ul.tabs > li > a {
    border-radius: 999px;
    font-weight: 500;
}
ul.tabs > li a:hover {
    box-shadow: none;
    background: var(--pro-surface-2);
}
ul.tabs > li.active > a {
    background: var(--tabs-active-background-color);
    color: var(--body-background-color);
    border-radius: 999px;
}
ul.tabs > li.overflowed > ul {
    border-radius: 18px;
}

/* ---------- Popups ---------- */
.popup .body,
.popup > div {
    border-radius: 24px;
}

/* ---------- Footer ---------- */
.page-footer {
    background: var(--footer-background-color);
    margin-top: 48px;
}
@media screen and (min-width: 768px) {
    .page-footer {
        border-radius: 40px 40px 0 0;
    }
}
.page-footer > div {
    padding-top: 64px;
}
.page-footer .footer-menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--pro-yellow);
    margin-bottom: 16px;
}
.page-footer .footer-menu ul li a {
    padding: 5px 0;
    font-size: 0.9375rem;
}
.page-footer .footer-menu ul li a:hover {
    color: var(--footer-link-hover-color);
}
.page-footer .footer-data {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    font-size: 0.8125rem;
    color: var(--footer-text-color);
}
.page-footer .footer-data a {
    color: #FFFFFF;
}
.page-footer .mobile-apps img {
    height: 42px;
    width: auto;
}
.page-footer .newsletter input[type="text"],
.page-footer .newsletter input[type="email"] {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

/* ---------- Scrollbars ---------- */
.scrollbar::-webkit-scrollbar-thumb {
    background: rgba(253, 237, 24, 0.6);
}
.scrollbar:hover::-webkit-scrollbar-thumb {
    background: var(--pro-yellow);
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 767px) {
    h1 {
        font-size: 1.875rem;
    }
    body.home-page .header-tabs {
        margin: 0 12px;
        padding: 12px 6px 18px;
        border-radius: 24px;
    }
    body.home-page .carousel + .header-tabs,
    body.home-page .main-wrapper .carousel + .header-tabs__tabs-exists {
        margin: -40px 12px 0 !important;
    }
    body.home-page .header-tabs .tabs {
        margin: 0 9px 6px;
        max-width: calc(100% - 18px);
    }
    body.home-page .header-tabs .tabs > li > a {
        padding: 0 16px;
    }
    .smart-search__submit,
    input[type="submit"].smart-search__submit {
        padding: 0 18px;
    }
    section.content_block > h3 {
        font-size: 1.5rem;
    }
    ul.featured > li:before {
        left: 5px;
        right: 5px;
        border-radius: 20px;
    }
    ul.featured.with-pictures > li .picture {
        margin: 6px 6px 0;
        border-radius: 15px;
    }
    ul.featured > li img {
        border-radius: 15px;
    }
    ul.featured > li > ul.card-info,
    ul.featured > li > ul {
        padding: 10px 12px 12px;
    }
    ul.card-info > li.title a {
        font-size: 0.9375rem;
    }
    ul.card-info > li.price_tag > div > span,
    ul.card-info .price-tag > span {
        font-size: 1.0625rem;
    }
    ul.card-info li.useful > span {
        padding: 3px 8px 3px 6px;
    }
    ul.featured .icons > span {
        width: 34px;
        height: 34px;
    }
    .page-footer > div {
        padding-top: 40px;
    }
}

/* inset photo inside featured cards */
ul.featured.with-pictures > li > .picture {
    width: auto;
}

/* browse cards: stronger selectors to beat core list/grid rules */
section#listings.list .main-column,
section#listings.grid .main-column {
    border-radius: 26px;
    background-color: var(--listing-background-color);
    box-shadow: var(--pro-shadow-sm);
}
section#listings.list .item:hover .main-column,
section#listings.grid .item:hover .main-column {
    box-shadow: var(--pro-shadow-lg);
}
section#listings div.picture,
section#listings div.picture img {
    border-radius: 20px;
}
section#listings.grid div.picture {
    margin: 8px 8px 0;
    width: auto;
}
section#listings.list ul.card-info > li.title a {
    font-size: 1.1875rem;
}
@media screen and (max-width: 767px) {
    section#listings.list .main-column,
    section#listings.grid .main-column {
        border-radius: 20px;
        padding: 6px;
    }
    section#listings div.picture,
    section#listings div.picture img {
        border-radius: 15px;
    }
}
